#include <stdio.h>
#include <limits.h>

/*sizeof()关键字函数，用于计算变量类型或变量本身所占字节大小*/
int main()
{
    printf("%lu \n", sizeof(char));         //占1字节 
    printf("%lu \n", sizeof(short));        //占2字节 
    printf("%lu \n", sizeof(int));          //占4字节 
    printf("%lu \n", sizeof(long));         //占8字节 
    printf("%lu \n", sizeof(long long));    //占8字节 
    printf("%lu \n", sizeof(float));        //占4字节 
    printf("%lu \n", sizeof(double));       //占8字节 

    return 0;
    }
